package org.example;

public class Student {
    private String name;
    private int age;
    private String address;
    private int zipCode;
    private String mobile;

    public Student() {
    }
    public Student(String name, int age, String address, int zipCode, String mobile) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.zipCode = zipCode;
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getZipCode() {
        return zipCode;
    }

    public void setZipCode(int zipCode) {
        this.zipCode = zipCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    public String getPostAddress(){
        return "地址："+ address + " 邮编：" + zipCode;
    }

    public static void main(String[] args) {
        Student student = new Student("张三", 20, "北京市朝阳区", 100020, "13800138000");
        System.out.println(student.getPostAddress());
    }

}
